<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/节点样式.css">
</head>
<body>
    <div class="footer">
        <div class="footer-item active">首页</div>
        <div class="footer-item">我的收藏</div>
        <div class="footer-item">我的订单</div>
        <div class="footer-item">我的</div>
    </div>
    <script>
        window.onload = function (){
            var footerItems = document.getElementsByClassName("footer-item");
            console.log(footerItems);
        }
    </script>
</body>
</html>